home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Examples by Thomas Tempelmann / TT's FileMgr-Plugin / Source Code (CW Pro 3) / Plugin SDK Includes / rb_plugin.h < prev    next >
C/C++ Source or Header  |  1998-06-24  |  2KB  |  42 lines

  1. #include "REALplugin.h"
  2.  
  3. void REALRegisterMethod(REALmethodDefinition *defn);
  4. void REALRegisterControl(REALcontrol *defn);
  5.  
  6. void REALLockString(REALstring str);
  7. void REALUnlockString(REALstring str);
  8.  
  9. const char *REALCString(REALstring str);
  10. const unsigned char *REALPString(REALstring str);
  11.  
  12. REALstring REALBuildString(const char *contents, int length);
  13.  
  14. REALpicture REALBuildPictureFromPicHandle(PicHandle pic, Boolean bPassOwnership);
  15. REALpicture REALBuildPictureFromGWorld(GWorldPtr world, Boolean bPassOwnership);
  16.  
  17. REALfolderItem REALFolderItemFromFSSpec(const FSSpec *spec);
  18. Boolean REALFSSpecFromFolderItem(FSSpec *spec, REALfolderItem item);
  19.  
  20. REALsound REALBuildSoundFromHandle(Handle sound, Boolean bPassOwnership);
  21.  
  22. REALappleEvent REALBuildAppleEvent(const AppleEvent *event, Boolean bPassOwnership);
  23. REALappleEvent REALBuildAEDescList(const AppleEvent *event, Boolean bPassOwnership);
  24. REALappleEvent REALBuildAEObjSpecifier(const AppleEvent *event, Boolean bPassOwnership);
  25. AppleEvent *REALAccessAppleEvent(REALappleEvent event);
  26. AppleEvent *REALAccessAppleEventReply(REALappleEvent event);
  27.  
  28. WindowPtr REALGetWindowHandle(REALwindow window);
  29. ControlHandle REALGetControlHandle(REALcontrolInstance control);
  30. MenuHandle REALGetPopupMenuHandle(REALpopupMenu popup);
  31.  
  32. void GraphicsDrawLine(Ptr graphicsObject, int x1, int y1, int x2, int y2);
  33.  
  34. void *REALGetControlData(REALcontrolInstance instance, REALcontrol *defn);
  35. void REALGetControlBounds(REALcontrolInstance instance, Rect *rBounds);
  36.  
  37. void *REALGetEventInstance(REALcontrolInstance instance, REALevent *event);
  38.  
  39. void REALSelectGraphics(REALgraphics context);
  40.  
  41. #define ControlData(defn, instance, typeName, data) typeName *data = (typeName *) REALGetControlData(instance, &defn)
  42.